package com.msmall.community.play.cases.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.msmall.base.model.BaseObject;

/**
 * CASE等级,用户通过玩PLAY.CASES会获得奖励，同时通过CASES的积累，关于PLAY.CASES这个项目会有等级
 * @author zhzy
 */
@Entity
@Table(name="play_cases_rank")
public class CasesRank extends BaseObject implements Serializable{

	private static final long serialVersionUID = 3274458787066968036L;
	
	@Id
	@Column(name="rank_id")
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Long rankId;
	
	@Column(name="enabled")
	private Short enabled;
	
	/**
	 * 等级名称
	 */
	@Column(name="name")
	private String name;
	
	/**
	 * 等级所需最少积分
	 */
	@Column(name="score")
	private Integer score;
	
	@Column(name="creator")
	private String creator;
	
	@Column(name="create_time")
	@Temporal(TemporalType.TIMESTAMP)
	private Date createTime;
	
	public Long getRankId() {
		return rankId;
	}

	public void setRankId(Long rankId) {
		this.rankId = rankId;
	}

	public Short getEnabled() {
		return enabled;
	}

	public void setEnabled(Short enabled) {
		this.enabled = enabled;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getScore() {
		return score;
	}

	public void setScore(Integer score) {
		this.score = score;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public boolean equals(Object o) {
		// TODO Auto-generated method stub
		return false;
	}

	public int hashCode() {
		// TODO Auto-generated method stub
		return 0;
	}

	public String toString() {
		// TODO Auto-generated method stub
		return null;
	}

}
